package org.tigris.scarab.mapper;

import org.tigris.scarab.model.Transaction;

/**
 * Basic functions used by other DAOs to manipulate the Transactions.
 * 
 * @author andrea
 */
public interface TransactionMapper {
    /**Inserts the given transaction returning the number of affected rows*/
    int insert(Transaction transaction);

    long findLastKey();
    
    Transaction selectByID(Long transactionId);
    
}
